/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.charge.dao.impl;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.charge.dao.IFlowDefDao;
import com.ce.pms.charge.model.FlowDefDomain;

/**
 * 功能描述：流程定义<br>
 * @author 罗军林 创建日期：2008-9-11
 */
public class FlowDefDaoImpl extends PmsBaseDaoImpl<FlowDefDomain> implements IFlowDefDao {

	/*
	 * (non-Javadoc)
	 * @see com.ce.pms.charge.dao.IFlowDefDao#findFlowDefBySEQ(char)
	 */
	public FlowDefDomain findFlowDefBySEQ(Integer seq) {
		String hql="FROM FlowDefDomain def WHERE def.seqNo=? AND def.constraitSelect=1";
		Query query=this.createQuery(hql, seq.shortValue());
		return (FlowDefDomain)query.uniqueResult();
	}


}
